package com.topnav.mc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.topnav.mc.entity.base.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 操作日志
 * @Author: kenny
 * @Date: 2024/3/28 11:18
 */
@Data
@TableName("mc_operate_log")
public class OperateLog extends BaseEntity {
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date time;
    //日志类型 对应 EnumLogType
    private Integer logType;

    private Long userId;
    //功能模块 EnumOperateFunction
    private Integer functionId;

    private String clientIp;

    private String context;
}
